﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Drawing;
using System.Xml.Serialization;

namespace LUC.Domains
{
	public class Feed					 
	{
		public int id_feed{get; set;}
		public int id_global { get; set; }

		[DisplayName("Категория")]
		public string name { get; set; }
		
		[Browsable(false)]
		public SerializableFont font { get; set; }
		
		[DisplayName("Шрифт категории")]
		[XmlIgnore]
		public Font font_disp { get { return font.ToFont(); } set { font = new SerializableFont(value); } }


		[Browsable(false)]
		public int color { get; set; }

		[DisplayName("Цвет фона кнопки категории")]
		[XmlIgnore]
		public Color color_disp
		{
			get { return ColorTranslator.FromWin32(color); }
			set { color = ColorTranslator.ToWin32(value); }
		}
		public int position { get; set; }

		public BindingList<Notification> notifications;
	}
}
